Skip to content

fix(site): derive Updated date from registry data#13

Merged
garysheng merged 1 commit intoPeonPing:mainfrom
taylan:fix/packs-updated-date
Mar 11, 2026
Merged

fix(site): derive Updated date from registry data#13
garysheng merged 1 commit intoPeonPing:mainfrom
taylan:fix/packs-updated-date

Conversation

@taylan
Copy link
Copy Markdown
Contributor

@taylan taylan commented Mar 11, 2026

Summary

  • The /packs page "Updated" date was using new Date() at render time, showing the ISR cache timestamp instead of when pack data actually changed
  • Now computes max(dateUpdated) across all registry packs server-side and passes it as a prop
  • Hides the element if no date is available

Test plan

  • npm run build passes
  • /packs page shows a date matching the most recent updated field in the registry

… time

The /packs page was showing the ISR render timestamp via new Date(),
which was misleading. Now computes max(dateUpdated) across all packs
and passes it as a prop to the client component.
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 11, 2026

@taylan is attempting to deploy a commit to the Gary Sheng's projects Team on Vercel.

A member of the Team first needs to authorize it.

@garysheng garysheng merged commit 18f50c3 into PeonPing:main Mar 11, 2026
2 of 3 checks passed
@taylan taylan deleted the fix/packs-updated-date branch March 11, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants